package com.jemframework.domain.exception;

import com.jemframework.domain.Entity;

public class EntityAttributeException extends RuntimeException {

  private static final long serialVersionUID = 5011729245696724070L;

  private Entity iSourceEntity;
  private String iPropertyName;
  private Object iPropertyValue;

  private String iMessageId;

  public EntityAttributeException(Entity aSourceEntity, String aPropertyName, Object aPropertyValue, String aMessageId) {
    iSourceEntity = aSourceEntity;
    iPropertyName = aPropertyName;
    iPropertyValue = aPropertyValue;
    iMessageId = aMessageId;
  }

  public String getPropertyName() {
    return iPropertyName;
  }

  public Entity getSourceEntity() {
    return iSourceEntity;
  }

  public Object getPropertyValue() {
    return iPropertyValue;
  }

  public String getMessage() {
    // TODO:
    return iMessageId;
  }
}
